home *** CD-ROM | disk | FTP | other *** search
/ Ray Dream Studio 5 / Ray Dream.iso / pc / DreamSDK / Windows / SAMPLES / EXPORTER / DXF / COMDXF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-11  |  1.9 KB  |  58 lines

  1. /* $Id: COMDXF.h 1.2 1996/07/30 01:07:42 Damien Exp $ */
  2.  
  3. // Copyright © 1990-1995 Ray Dream, Inc. All rights reserved.
  4.  
  5. #ifndef __COMDXF__
  6. #define __COMDXF__
  7.  
  8. struct IShFileStream;
  9. struct I3DShScene;
  10. struct I3DShTreeElement;
  11. struct I3DShObject;
  12.  
  13. #ifndef __I3DEXIO__
  14. #include "I3DExIO.h"
  15. #endif
  16.  
  17.  
  18. DEFINE_GUID(CLSID_DxfOut, 0x5C9601ABL, 0x7CC3, 0x101C, 0x88, 0x5F, 0x04, 0x02, 0x1C, 0x00, 0x70, 0x02);
  19.  
  20. #undef INTERFACE
  21. #define INTERFACE TDXFExporter
  22. class TDXFExporter : public I3DExExportFilter {
  23. public:
  24.     TDXFExporter();
  25.      ~TDXFExporter();
  26.  
  27.   // IUnknown Interface :
  28.   STDMETHODIMP         QueryInterface(THIS_ REFIID riid, LPVOID* ppvObj);
  29.   STDMETHODIMP_(ULONG) AddRef(THIS);
  30.   STDMETHODIMP_(ULONG) Release(THIS);
  31.   
  32.   // I3DExtension method :
  33.   STDMETHODIMP_(I3DExtension*) Clone(THIS);
  34.   STDMETHODIMP                 ShellUtilitiesInit(THIS_ IShUtilities* shellUtilities);  
  35.   
  36.   // I3DExDataExchanger methods :
  37.   STDMETHODIMP_(ExtensionDataMap*) GetExtensionDataMap(THIS);
  38.   STDMETHODIMP_(void*)             GetExtensionDataBuffer(THIS);
  39.   STDMETHODIMP                     ExtensionDataChanged(THIS);
  40.   STDMETHODIMP                     HandleEvent(THIS_ ULONG sourceID);
  41.   STDMETHODIMP_(short)             GetResID(THIS);
  42.   
  43.   // I3DExExportFilter methods
  44.     STDMETHODIMP_(BOOLEAN) Prepare(THIS_ I3DShScene* scene, I3DShTreeElement* fatherTree);
  45.     STDMETHODIMP_(BOOLEAN) WantsOptionDialog(THIS);
  46.     STDMETHODIMP NeededDiskSpace(THIS_ char* fullPathName, I3DShScene* scene, I3DShTreeElement* fatherTree, ULONG* diskSpace);
  47.     STDMETHODIMP DoExport(THIS_ char* fullPathName, I3DShScene* scene, I3DShTreeElement* fatherTree);
  48.     //-- Preview calls
  49.     STDMETHODIMP_(BOOLEAN) WantsPreview(THIS);
  50.     STDMETHODIMP GetPreviewSize(THIS_ short* sizeh, short* sizev);
  51.     STDMETHODIMP SetPreview(THIS_ IShRasterOffscreen* preview);
  52. private :
  53.   ULONG         fCRef;              // reference Counter
  54.     };
  55.  
  56.  
  57. #endif
  58.